/*
 * @Description:
 * @Author: 听风
 * @Date: 2021-02-03 19:21:17
 */
const action = require('../script/pub');

const pub = program => {
  program
    .command('pub <type>')
    .option('-d, --domain <domain>', '添加域名')
    .option('-s, --ssl <ssl...>', 'ssl证书')
    .requiredOption('-p, --port <port>', '端口')
    .option('-r, --registry <registry>', 'npm源')
    .option('-y, --yes', '控制询问y/n全部回yes')
    .action(action);
};

module.exports = pub;
